﻿using System;
using UnityEngine;

namespace IllusionUtility.SetUtility
{
	// Token: 0x0200034C RID: 844
	public static class SpriteRenderColorEx
	{
		// Token: 0x0600154A RID: 5450 RVA: 0x00091768 File Offset: 0x0008F968
		public static void SetColorR(this SpriteRenderer sr, float r)
		{
			Color color = new Color(r, sr.color.g, sr.color.b, sr.color.a);
			sr.color = color;
		}

		// Token: 0x0600154B RID: 5451 RVA: 0x000917B0 File Offset: 0x0008F9B0
		public static void SetColorG(this SpriteRenderer sr, float g)
		{
			Color color = new Color(sr.color.r, g, sr.color.b, sr.color.a);
			sr.color = color;
		}

		// Token: 0x0600154C RID: 5452 RVA: 0x000917F8 File Offset: 0x0008F9F8
		public static void SetColorB(this SpriteRenderer sr, float b)
		{
			Color color = new Color(sr.color.r, sr.color.g, b, sr.color.a);
			sr.color = color;
		}

		// Token: 0x0600154D RID: 5453 RVA: 0x00091840 File Offset: 0x0008FA40
		public static void SetColorA(this SpriteRenderer sr, float a)
		{
			Color color = new Color(sr.color.r, sr.color.g, sr.color.b, a);
			sr.color = color;
		}
	}
}
